package com.atguigu.gulimall.seckill.service;


import com.atguigu.gulimall.seckill.to.SecKillSkuRedisTO;

import java.util.List;

public interface SeckillService {
    void uploadSeckillSkuLatest3Days();

    List<SecKillSkuRedisTO> getCurrentSeckillSkus();

    /**
     * 根据skuId获取对应商品的秒杀活动的预告
     * @param skuId
     * @return
     */
    SecKillSkuRedisTO getSkuSeckillInfo(Long skuId);

    /**
     * 执行秒杀的业务
     * @param killId
     * @param key
     * @param num
     * @return
     */
    String kill(String killId, String key, Integer num);
}
